package a.f.l.a;

import a.c.ab;
import a.c.d;
import a.c.m;
import a.c.v;
import a.c.y;
import a.c.z;
import a.f.tb;

import java.util.*;

public class j
{
  private static final b_ a = new b_(null);
  static final int b = 1;
  private qb c;
  private HashMap d = new HashMap();
  public static boolean e;
  
  public void a(qb paramqb)
  {
    this.c = paramqb;
  }
  
  public void a()
  {
    this.d.clear();
    this.c = null;
  }
  
  protected qb b()
  {
    return this.c;
  }
  
  private a.f.o c()
  {
    return this.c.a();
  }
  
  public void a(ab paramab, lc paramlc)
  {
    boolean bool2 = sb.e;
    int j = sb.d;
    a.f.o localo = c();
    if (localo.m() == 0) {
      return;
    }
    z localz = null;
    boolean bool1 = false;
    int i = 0;
    if (i < 2)
    {
      this.d.clear();
      localz = a(paramlc);
      a(localz);
    }
    Object localObject;
    while (bool2)
    {
      localObject = a(localz, paramlc, this.c);
      a(localz, (Comparator)localObject);
      if ((!bool2) && (j != 0)) {
        break label140;
      }
      if (!bool2) {
        if (!bool1)
        {
          bool1 = a(localz, paramlc);
          if (!bool2) {
            if (!bool1) {
              continue;
            }
          }
        }
        else
        {
          i++;
        }
      }
      if (j == 0) {
        break;
      }
    }
    b(localz);
    label140:
    m localm = paramab.l();
    do
    {
      if (!localm.e()) {
        break;
      }
      localObject = localm.a();
      n localn = paramlc.a((d)localObject);
      localo.a((d)localObject, localn.k());
      localm.f();
      if ((!bool2) && (j != 0)) {
        return;
      }
    } while (j == 0);
    if (!bool2) {
      paramlc.a(bool1);
    }
  }
  
  private boolean a(z paramz, lc paramlc)
  {
    boolean bool2 = sb.e;
    int i = sb.d;
    boolean bool1 = false;
    Iterator localIterator = paramz.iterator();
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      i locali = (i)localIterator.next();
      if (!bool2)
      {
        if (i != 0) {
          break label66;
        }
        bool1 |= a(locali, paramlc);
      }
    } while (i == 0);
    label66:
    return bool1;
  }
  
  private boolean a(i parami, lc paramlc)
  {
    boolean bool13 = sb.e;
    int n = sb.d;
    boolean bool1 = false;
    List localList = parami.e();
    Object localObject1 = null;
    Iterator localIterator = localList.iterator();
    label491:
    do
    {
      do
      {
        if (!localIterator.hasNext()) {
          break;
        }
        f localf1 = (f)localIterator.next();
        if (((bool13) || (localObject1 != null)) && ((bool13) || ((!((f)localObject1).f()) || ((bool13) || (!localf1.f())))) && ((bool13) || (a((f)localObject1, localf1)))) {
          if (bool13) {}
        }
        int i = a((f)localObject1, localf1, parami) ? 1 : 0;
        if (!bool13)
        {
          if (i != 0)
          {
            n localn1 = a((f)localObject1, paramlc);
            n localn2 = a(localf1, paramlc);
            eb localeb1 = a((f)localObject1, localn1);
            eb localeb2 = a(localf1, localn2);
            if (((bool13) || (localeb1 != null)) && ((bool13) || (localeb2 != null))) {
              if (bool13) {}
            }
            int j = localeb1.b(localeb2) == 0.0D ? 1 : 0;
            if (bool13) {
              continue;
            }
            if (j != 0)
            {
              eb localeb3 = eb.a(localeb1, localeb2);
              if ((bool13) || (localeb3.d() < localeb1.d())) {
                if (bool13) {}
              }
              int k = localeb3.d() < localeb2.d() ? 1 : 0;
              if (bool13) {
                continue;
              }
              if (k != 0)
              {
                if (!bool13) {}
                boolean bool2 = localeb1.a() < localeb2.a();
                f localf2 = bool2 ? localObject1 : localf1;
                Object localObject2 = bool2 ? localf1 : localObject1;
                eb localeb4 = b(localeb3, localf2);
                eb localeb5 = a(localeb3, localObject2);
                if (!bool13) {}
                boolean bool3 = !a(localf2);
                boolean bool4 = a(localf2, localeb4, bool3, paramlc);
                boolean bool5 = a(localObject2);
                boolean bool6 = a(localObject2, localeb5, bool5, paramlc);
                if (!bool13) {
                  if (!bool4)
                  {
                    if (bool13) {
                      continue;
                    }
                    if (!bool6) {
                      break label640;
                    }
                  }
                }
                boolean bool7 = bool4;
                if (!bool13) {
                  if (bool4)
                  {
                    if (bool13) {
                      break label491;
                    }
                    if (bool6)
                    {
                      if (!bool13) {}
                      bool7 = localeb4.d() >= localeb5.d();
                    }
                  }
                }
                Object localObject3 = bool7 ? localf2 : localObject2;
                boolean bool8 = a(localObject3);
                n localn3 = (bool7 ^ bool2) ? localn2 : localn1;
                if (!bool13) {}
                boolean bool9 = bool7 ? bool3 : bool5;
                if (!bool13) {}
                int m = bool9 ? localObject3.j() - 1 : localObject3.j() + 1;
                eb localeb6 = bool7 ? localeb4 : localeb5;
                f localf3 = localn3.a(m);
                boolean bool10 = a(localf3);
                boolean bool11 = bool7 ^ bool8;
                boolean bool12 = bool11 ^ bool10;
                a(localObject3, localf3, bool12, bool11, localeb6, localeb3, paramlc);
                bool1 = true;
              }
            }
          }
          localObject1 = localf1;
        }
      } while (n == 0);
    } while (bool13);
    label640:
    return bool1;
  }
  
  private static eb a(eb parameb, f paramf)
  {
    boolean bool = sb.e;
    eb localeb = null;
    if (!bool) {
      if (paramf.a() == null) {
        return new eb(parameb.b(), paramf.b().b());
      }
    }
    if ((bool) || (parameb.b() < paramf.a().a())) {
      localeb = eb.c(paramf.a(), parameb);
    }
    return localeb;
  }
  
  private static eb b(eb parameb, f paramf)
  {
    boolean bool = sb.e;
    eb localeb = null;
    if (!bool) {
      if (paramf.a() == null) {
        return new eb(paramf.b().a(), parameb.a());
      }
    }
    if ((bool) || (paramf.a().b() < parameb.a())) {
      localeb = eb.c(paramf.a(), parameb);
    }
    return localeb;
  }
  
  private static boolean a(f paramf1, f paramf2, i parami)
  {
    if (!sb.e) {}
    return Math.abs(parami.b(paramf1) - parami.b(paramf2)) < 1.0D;
  }
  
  private static boolean a(f paramf1, f paramf2)
  {
    return ((!sb.e) && (paramf1.l() == null)) || (paramf1.l() != paramf2.l());
  }
  
  private void a(f paramf1, f paramf2, boolean paramBoolean1, boolean paramBoolean2, eb parameb1, eb parameb2, lc paramlc)
  {
    boolean bool3 = sb.e;
    int k = sb.d;
    int i = paramf1.j();
    int j = paramf2.j();
    pc localpc = i < j ? paramf1.l() : paramf2.l();
    Object localObject1;
    Object localObject2;
    Object localObject3;
    Object localObject4;
    double d1;
    if (localpc == null)
    {
      localObject1 = paramlc.a(paramf1.i());
      localObject2 = a(paramf1, paramf2, paramBoolean1, parameb1);
      localObject3 = a(paramf1, paramf2, paramBoolean2, parameb1, parameb2);
      localObject4 = paramf1.a();
      if (!bool3)
      {
        if (localObject4 != null)
        {
          boolean bool1 = paramBoolean2 ^ a(paramf1);
          double d2 = bool1 ? ((eb)localObject4).a() : ((eb)localObject4).b();
          paramf1.a(new eb(d2, d2));
        }
        localObject4 = paramf2.a();
        if (bool3) {}
      }
      else
      {
        if (localObject4 != null)
        {
          d1 = paramBoolean1 ? ((eb)localObject4).b() : ((eb)localObject4).a();
          paramf2.a(new eb(d1, d1));
        }
        ((n)localObject1).a((f)localObject2, (f)localObject3);
      }
      if (k == 0) {}
    }
    else
    {
      localObject1 = new z();
      localObject2 = new pc(parameb1, (List)localObject1);
      localObject3 = new z();
      localObject4 = new pc(null, (List)localObject3);
      d1 = 1.7976931348623157E+308D;
      double d3 = -1.797693134862316E+308D;
      Iterator localIterator = localpc.b().iterator();
      Object localObject5;
      do
      {
        do
        {
          if (!localIterator.hasNext()) {
            break;
          }
          localObject5 = ((f)localIterator.next()).i();
          n localn = paramlc.a((d)localObject5);
          f localf1 = localn.a(i);
          f localf2 = localn.a(j);
          f localf3 = a(localf1, localf2, paramBoolean1, parameb1);
          localf3.a((pc)localObject2);
          ((z)localObject1).add(localf3);
          f localf4 = a(localf1, localf2, paramBoolean2, parameb1, parameb2);
          ((z)localObject3).add(localf4);
          d1 = Math.min(d1, localf4.c().a());
          d3 = Math.max(d3, localf4.c().b());
          if (bool3) {
            break label595;
          }
          eb localeb = localf1.a();
          if (k != 0) {
            break label592;
          }
          if (localeb != null)
          {
            boolean bool2 = paramBoolean2 ^ a(localf1);
            double d5 = bool2 ? localeb.a() : localeb.b();
            localf1.a(new eb(d5, d5));
          }
          localeb = localf2.a();
          if (!bool3)
          {
            if (localeb != null)
            {
              double d4 = paramBoolean1 ? localeb.b() : localeb.a();
              localf2.a(new eb(d4, d4));
            }
            localn.a(localf3, localf4);
          }
        } while (k == 0);
        ((pc)localObject2).d();
        ((pc)localObject4).a(new eb(d1, d3));
      } while (bool3);
      localIterator = ((z)localObject3).iterator();
      if (localIterator.hasNext()) {}
      label592:
      label595:
      while (bool3)
      {
        localObject5 = (f)localIterator.next();
        ((f)localObject5).a((pc)localObject4);
        if ((!bool3) && (k != 0)) {
          return;
        }
        if (k == 0) {
          break;
        }
      }
      ((pc)localObject4).d();
    }
  }
  
  private f a(f paramf1, f paramf2, boolean paramBoolean, eb parameb1, eb parameb2)
  {
    eb localeb = new eb(paramf2.b().a() + 1.0D, paramf2.b().b() - 1.0D);
    if (!sb.e) {}
    int i = paramBoolean ? paramf1.j() : paramf1.j() + 2;
    return new f(paramf1.i(), i, paramf1.h(), localeb, parameb2, eb.b(parameb1, parameb2), null);
  }
  
  private f a(f paramf1, f paramf2, boolean paramBoolean, eb parameb)
  {
    eb localeb = paramBoolean ? new eb(paramf2.b().a(), paramf2.b().a()) : new eb(paramf2.b().b(), paramf2.b().b());
    return new f(paramf1.i(), paramf1.j() + 1, paramf2.h(), parameb, localeb, paramf2.b(), null);
  }
  
  private boolean a(f paramf, eb parameb, boolean paramBoolean, lc paramlc)
  {
    boolean bool = sb.e;
    int j = sb.d;
    if (parameb == null) {
      return false;
    }
    if (paramf.l() == null) {
      return true;
    }
    Object localObject = null;
    if (!bool) {}
    int i = paramBoolean ? paramf.j() - 1 : paramf.j() + 1;
    if ((bool) || (i < 0)) {
      return false;
    }
    Iterator localIterator = paramf.l().b().iterator();
    while (localIterator.hasNext())
    {
      f localf = (f)localIterator.next();
      n localn = paramlc.a(localf.i());
      if (!bool) {
        if (localn.e() <= i) {
          return false;
        }
      }
      tb localtb = localn.a(i).h();
      if (!bool) {
        if (localObject == null)
        {
          localObject = localtb;
          if ((!bool) && (j == 0)) {
            continue;
          }
        }
      }
      if (!localObject.equals(localtb))
      {
        if ((bool) || (j != 0)) {
          break label190;
        }
        return false;
      }
    }
    label190:
    return true;
  }
  
  private n a(f paramf, lc paramlc)
  {
    boolean bool = sb.e;
    if ((bool) || (paramf.i() == null))
    {
      f localf = (f)paramf.l().b().get(0);
      if (bool) {
        break label64;
      }
      localn = paramlc.a(localf.i());
      if (sb.d == 0) {
        return localn;
      }
    }
    label64:
    n localn = paramlc.a(paramf.i());
    return localn;
  }
  
  private boolean a(f paramf)
  {
    return (sb.e) || ((paramf.h() == tb.b) || (paramf.h() == tb.c));
  }
  
  private eb a(f paramf, n paramn)
  {
    boolean bool = sb.e;
    int j = sb.d;
    int i = paramf.j();
    double d1;
    if ((bool) || (i == 0))
    {
      if (a(paramf))
      {
        d1 = paramf.b().a();
        if (bool) {
          break label138;
        }
        if (j == 0) {}
      }
      else
      {
        d1 = paramf.b().b();
        if (bool) {
          break label138;
        }
        if (j == 0) {}
      }
    }
    else
    {
      localf = paramn.a(i - 1);
      if (!bool) {
        if (localf.l() != null) {
          localf = localf.l().c();
        }
      }
      locali = (i)this.d.get(localf);
      if (!bool) {
        if (locali == null) {
          return null;
        }
      }
      d1 = locali.b(localf);
    }
    label138:
    if ((bool) || (i == paramn.e() - 1))
    {
      if (a(paramf))
      {
        d2 = paramf.b().b();
        if (!bool) {
          if (j == 0) {
            break label265;
          }
        }
      }
      else
      {
        if (bool) {
          break label205;
        }
        d2 = paramf.b().a();
      }
      if (j == 0) {
        break label265;
      }
    }
    label205:
    f localf = paramn.a(i + 1);
    if (!bool) {
      if (localf.l() != null) {
        localf = localf.l().c();
      }
    }
    i locali = (i)this.d.get(localf);
    if (!bool) {
      if (locali == null) {
        return null;
      }
    }
    double d2 = locali.b(localf);
    label265:
    return new eb(d1, d2);
  }
  
  private void a(z paramz)
  {
    boolean bool = sb.e;
    int i = sb.d;
    do
    {
      Iterator localIterator1 = paramz.iterator();
      Iterator localIterator2;
      while (!localIterator2.hasNext())
      {
        if (!localIterator1.hasNext()) {
          break;
        }
        i locali = (i)localIterator1.next();
        localIterator2 = locali.e().iterator();
      }
      f localf = (f)localIterator2.next();
      o localo = this.c.c().a(localf.i());
      localf.c(localo.c());
    } while ((!bool) && ((i == 0) && (i == 0)));
  }
  
  protected Comparator a(z paramz, lc paramlc, qb paramqb)
  {
    return new rc(paramz, paramlc, paramqb);
  }
  
  private boolean b(f paramf1, f paramf2)
  {
    boolean bool = sb.e;
    a locala = this.c.c();
    double d1 = locala.a(paramf1.i()).c();
    double d2 = locala.a(paramf2.i()).c();
    double d3 = Math.max(d1, d2);
    if ((bool) || (paramf1.b().a(paramf2.b()))) {
      if (bool) {}
    }
    return paramf1.c().b(paramf2.c()) < d3;
  }
  
  private z a(List paramList)
  {
    boolean bool = sb.e;
    int i = sb.d;
    Collections.sort(paramList, a);
    z localz1 = new z();
    z localz2 = new z();
    Iterator localIterator1 = paramList.iterator();
    Object localObject1;
    label181:
    label188:
    do
    {
      do
      {
        Object localObject2;
        for (;;)
        {
          if (!localIterator1.hasNext()) {
            break label423;
          }
          localObject1 = (f)localIterator1.next();
          double d1 = ((f)localObject1).c().a();
          z localz3 = new z();
          if (i != 0) {
            break label456;
          }
          localObject2 = localz2.h();
          do
          {
            if (!((y)localObject2).e()) {
              break;
            }
            localObject3 = (i)((y)localObject2).j();
            double d2 = a((i)localObject3);
            if (bool) {
              break label188;
            }
            if (i != 0) {
              break label181;
            }
            if (((i)localObject3).a().b() + d2 < d1) {
              localz3.add(localObject3);
            }
            ((y)localObject2).f();
          } while (i == 0);
          if (!bool) {
            localz2.removeAll(localz3);
          }
          localz1.a(localz3);
          localObject2 = new z();
          localObject3 = localz2.h();
          if (((y)localObject3).e()) {}
          while (bool)
          {
            localObject4 = (i)((y)localObject3).j();
            if (i != 0) {
              break label271;
            }
            if (a((i)localObject4, (f)localObject1)) {
              ((z)localObject2).add(localObject4);
            }
            ((y)localObject3).f();
            if (i == 0) {
              break;
            }
          }
          if (((z)localObject2).size() == 0)
          {
            localObject3 = new i((f)localObject1);
            localz2.add(localObject3);
          }
          else
          {
            if ((!bool) && (((z)localObject2).size() != 1)) {
              break;
            }
            localObject3 = (i)((z)localObject2).get(0);
            ((i)localObject3).a((f)localObject1);
          }
        }
        Object localObject3 = new i((f)localObject1);
        Object localObject4 = ((z)localObject2).h();
        do
        {
          do
          {
            if (!((y)localObject4).e()) {
              break;
            }
            i locali = (i)((y)localObject4).j();
            ((i)localObject3).a(locali);
            ((y)localObject4).f();
            if (bool) {
              break label420;
            }
            if (i != 0) {
              break label418;
            }
          } while (i == 0);
          localz2.removeAll((Collection)localObject2);
        } while (bool);
        localz2.add(localObject3);
      } while (i == 0);
      localz1.a(localz2);
    } while (bool);
    label271:
    label418:
    label420:
    label423:
    localIterator1 = localz1.iterator();
    break label473;
    label439:
    if (localIterator1.hasNext()) {}
    label456:
    label473:
    while (bool)
    {
      localObject1 = (i)localIterator1.next();
      Iterator localIterator2 = ((i)localObject1).e().iterator();
      if (!localIterator2.hasNext()) {
        break label439;
      }
      f localf = (f)localIterator2.next();
      this.d.put(localf, localObject1);
      if ((!bool) && ((i == 0) && (i == 0))) {
        break;
      }
    }
    return localz1;
  }
  
  private double a(i parami)
  {
    boolean bool = sb.e;
    int i = sb.d;
    double d1 = 0.0D;
    Iterator localIterator = parami.e().iterator();
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      f localf = (f)localIterator.next();
      double d2 = this.c.c().a(localf.i()).c();
      if (!bool)
      {
        if (i != 0) {
          break label88;
        }
        d1 = Math.max(d1, d2);
      }
    } while (i == 0);
    label88:
    return d1;
  }
  
  private boolean a(i parami, f paramf)
  {
    boolean bool = sb.e;
    int i = sb.d;
    Iterator localIterator = parami.e().iterator();
    while (localIterator.hasNext())
    {
      f localf = (f)localIterator.next();
      if (b(paramf, localf))
      {
        if ((bool) || (i != 0)) {
          break label63;
        }
        return true;
      }
    }
    label63:
    return false;
  }
  
  private z a(lc paramlc)
  {
    boolean bool = sb.e;
    int j = sb.d;
    ArrayList localArrayList1 = new ArrayList();
    ArrayList localArrayList2 = new ArrayList();
    Object localObject1 = c().w();
    label139:
    do
    {
      do
      {
        if (!((m)localObject1).e()) {
          break;
        }
        localObject2 = ((m)localObject1).a();
        localObject3 = paramlc.a((d)localObject2);
        if (!bool)
        {
          if (localObject3 != null)
          {
            int i = 0;
            do
            {
              if (i >= ((n)localObject3).e()) {
                break label139;
              }
              f localf = ((n)localObject3).a(i);
              if (j != 0) {
                break;
              }
              if (localf.g())
              {
                localArrayList2.add(localf);
                if (bool) {
                  continue;
                }
                if (j == 0) {}
              }
              else
              {
                localArrayList1.add(localf);
              }
              i++;
            } while (j == 0);
          }
          ((m)localObject1).f();
        }
      } while (bool);
    } while (j == 0);
    localObject1 = a(localArrayList1);
    Object localObject2 = a(localArrayList2);
    Object localObject3 = localObject1;
    ((z)localObject3).a((z)localObject2);
    return localObject3;
  }
  
  private void c(z paramz, lc paramlc)
  {
    boolean bool = sb.e;
    int j = sb.d;
    HashSet localHashSet = new HashSet();
    Object localObject1 = paramz.h();
    Object localObject2;
    Object localObject3;
    do
    {
      do
      {
        if (!((y)localObject1).e()) {
          break;
        }
        f localf1;
        do
        {
          localObject2 = (i)((y)localObject1).j();
          localObject3 = ((i)localObject2).e().iterator();
          do
          {
            if (!((Iterator)localObject3).hasNext()) {
              break;
            }
            localf1 = (f)((Iterator)localObject3).next();
          } while (localHashSet.add(localf1));
        } while ((bool) || (j != 0));
        throw new RuntimeException("segment registered twice " + localf1.i() + " " + localf1.j() + " " + localf1.g());
        ((y)localObject1).f();
      } while (j == 0);
    } while (bool);
    localObject1 = c().w();
    label320:
    do
    {
      do
      {
        if (!((m)localObject1).e()) {
          break;
        }
        localObject2 = ((m)localObject1).a();
        localObject3 = paramlc.a((d)localObject2);
        if (!bool)
        {
          if (localObject3 != null)
          {
            int i = 0;
            do
            {
              if (i >= ((n)localObject3).e()) {
                break label320;
              }
              f localf2 = ((n)localObject3).a(i);
              if (j != 0) {
                break;
              }
              if (!localHashSet.contains(localf2)) {
                throw new RuntimeException("segment not in channel " + localf2.i() + " " + localf2.j() + " " + localf2.g());
              }
              i++;
            } while (j == 0);
          }
          ((m)localObject1).f();
        }
      } while (bool);
    } while (j == 0);
  }
  
  private void a(z paramz, Comparator paramComparator)
  {
    int i = sb.d;
    y localy = paramz.h();
    do
    {
      if (!localy.e()) {
        break;
      }
      i locali = (i)localy.j();
      a(locali, paramComparator);
      localy.f();
    } while (i == 0);
  }
  
  private void a(i parami, Comparator paramComparator)
  {
    List localList = parami.e();
    a(localList, paramComparator);
    b(parami);
    c(parami);
    d(parami);
    e(parami);
  }
  
  protected void a(List paramList, Comparator paramComparator)
  {
    boolean bool = sb.e;
    int j = sb.d;
    z localz = new z();
    Iterator localIterator = paramList.iterator();
    label69:
    label122:
    do
    {
      f localf;
      do
      {
        Object localObject;
        do
        {
          if (!localIterator.hasNext()) {
            break;
          }
          break label69;
          localf = (f)localIterator.next();
          localObject = null;
          if (bool) {
            return;
          }
          if (j != 0) {
            break label180;
          }
          v localv = localz.g();
          do
          {
            if (localv == null) {
              break label122;
            }
            int i;
            if (j != 0) {
              break;
            }
            if ((i = paramComparator.compare(localf, localv.c())) > 0) {
              break label122;
            }
            if (!bool)
            {
              if (i < 0) {
                localObject = localv;
              }
              localv = localv.b();
            }
          } while (j == 0);
        } while (bool);
        if (bool) {
          break label162;
        }
        if (localObject == null) {
          break;
        }
        localz.a(localf, localObject);
        if (bool) {
          break label165;
        }
      } while (j == 0);
      localz.b(localf);
    } while (j == 0);
    label162:
    label165:
    paramList.clear();
    if (!bool) {
      label180:
      paramList.addAll(localz);
    }
  }
  
  private void b(z paramz)
  {
    int i = sb.d;
    Iterator localIterator = paramz.iterator();
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      i locali = (i)localIterator.next();
      f(locali);
      g(locali);
    } while (i == 0);
  }
  
  private void b(i parami)
  {
    boolean bool = sb.e;
    int j = sb.d;
    List localList = parami.e();
    z localz = new z();
    HashSet localHashSet = new HashSet();
    Iterator localIterator = localList.iterator();
    Object localObject1;
    do
    {
      pc localpc;
      do
      {
        do
        {
          if (!localIterator.hasNext()) {
            break;
          }
          localObject1 = (f)localIterator.next();
          localpc = ((f)localObject1).l();
        } while (localpc == null);
        double d1 = Math.max(((f)localObject1).n(), localpc.c().n());
        localpc.c().c(d1);
        if ((bool) || (j != 0)) {
          break label152;
        }
      } while (!localHashSet.add(localpc));
      if (bool) {
        break label140;
      }
      localz.add(localpc);
    } while (j == 0);
    label140:
    localIterator = localz.iterator();
    label152:
    label252:
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      localObject1 = (pc)localIterator.next();
      int i = 0;
      Object localObject2 = ((pc)localObject1).b().iterator();
      do
      {
        do
        {
          if (!((Iterator)localObject2).hasNext()) {
            break;
          }
          if (bool) {
            break label257;
          }
          f localf = (f)((Iterator)localObject2).next();
          i += localList.indexOf(localf);
          if (j != 0) {
            break label252;
          }
        } while (j == 0);
      } while (bool);
      i /= ((pc)localObject1).b().size();
      localObject2 = ((pc)localObject1).c();
      this.d.put(localObject2, parami);
      localList.add(i, localObject2);
      localList.removeAll(((pc)localObject1).b());
      parami.a((pc)localObject1);
    } while (j == 0);
    label257:
  }
  
  protected void c(i parami)
  {
    new nc(parami, this.c).b();
  }
  
  protected void d(i parami)
  {
    new nc(parami, this.c).d();
  }
  
  protected void e(i parami)
  {
    nc.a(parami, this.c);
  }
  
  private void f(i parami)
  {
    boolean bool = sb.e;
    int i = sb.d;
    Iterator localIterator = parami.e().iterator();
    do
    {
      do
      {
        f localf;
        do
        {
          if (!localIterator.hasNext()) {
            break;
          }
          localf = (f)localIterator.next();
        } while (localf.f());
        double d1 = parami.b(localf);
        localf.a(d1);
      } while (bool);
    } while (i == 0);
  }
  
  private void g(i parami)
  {
    boolean bool = sb.e;
    int m = sb.d;
    List localList = parami.e();
    int i = 0;
    int j = parami.f();
    label134:
    do
    {
      if (i >= j) {
        break;
      }
      pc localpc = parami.b(i);
      f localf1 = localpc.c();
      int k = localList.indexOf(localf1);
      localList.remove(localf1);
      Iterator localIterator = localpc.b().iterator();
      do
      {
        do
        {
          if (!localIterator.hasNext()) {
            break label134;
          }
          f localf2 = (f)localIterator.next();
          if (m != 0) {
            break;
          }
          if (!localf2.f()) {
            localf2.a(localf1.e());
          }
          localList.add(k, localf2);
        } while (m == 0);
        i++;
      } while (bool);
    } while (m == 0);
  }
  
  private static class b_
    implements Comparator
  {
    private b_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      boolean bool = sb.e;
      f localf1 = (f)paramObject1;
      f localf2 = (f)paramObject2;
      double d = localf1.c().a() - localf2.c().a();
      if (!bool) {
        if (d == 0.0D) {
          return 0;
        }
      }
      if (!bool) {}
      return d < 0.0D ? -1 : 1;
    }
    
    b_(j.0 param0)
    {
      this();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.a.j

 * JD-Core Version:    0.7.0.1

 */